//
//  CSGXInventoryManagerBLL.h
//  CarSalesMS_GCX
//
//  Created by Tony on 2016/12/23.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import <Foundation/Foundation.h>

@class TSaleInfoDAL;

@class TSaleInfoModel;
@class TInventoryModel;

@interface CSGXInventoryManagerBLL : NSObject

#pragma mark - BLL
///得到3个 数量+单位的字符串 （,,）
+ (NSString *)getThreeUnitStr:(NSString *)unitStr countStr:(NSString *)countStr;

///将普通的saleList（可能两个单位）的数量和计算出来，返回字符串
+ (NSString *)getSaleCountTodayWithSaleList:(NSArray<TSaleInfoModel *> *)saleList;
    
+ (NSString *)getSumCountWithCountList:(NSArray<NSString *> *)list;
    
+ (TInventoryModel *)getInventoryModelWithInventoryList:(NSArray<TInventoryModel *> *)list;

+ (NSString *)getPriceStr:(NSString *)price;
///当前库存的总价
+ (CGFloat)getTotalMoneyWithPriceStr:(NSString *)priceStr count:(NSString *)countStr;


#pragma mark - select
+ (NSArray<TSaleInfoModel *> *)loadSaleListWithCommNO:(NSString *)commNo timeDay:(NSString *)timeDay;



@end
